/*
 * Rectangle.h
 *
 *  Created on: Oct 28, 2012
 *      Author: Bhupendra Aole
 */

#include "DXObject.h"

#ifndef RECTANGLE_H_
#define RECTANGLE_H_

namespace aole {

class Rectangle: public DXObject {
private:
	double xpos, ypos, width, height;
	ID3D11VertexShader* vertexShader;
	ID3D11InputLayout* vertexLayout;
	ID3D11PixelShader* pixelShader;
	ID3D11Buffer* vertexBuffer;

public:
	Rectangle() :
			xpos( 0 ), ypos( 0 ), width( 0 ), height( 0 ), vertexShader( 0 ), vertexLayout(
					0 ), pixelShader( 0 ), vertexBuffer( 0 ) {
	}

	int setProperty( const char* name, const char* value );
	void create( DXEngine* engine );
	void render( DXEngine* engine );

	~Rectangle();
};

} /* namespace aole */
#endif /* RECTANGLE_H_ */
